#import <UIKit/UIKit.h>
#import "LXLineChartView.h"

@class LXCycleView;

@protocol LXCycleViewDelegate <NSObject>

@required
//返回图片的个数
- (NSInteger)countOfCycleView:(LXCycleView *)cycleView;

@optional
//设置imageview-这里可以使用SDImageView 等等第三方库哦
- (void)cycleView:(LXCycleView *)cycleView willDisplayImageView:(UIView *)showView index:(NSInteger)index;
//滑动停止的时候显示标签//一旦遵循了这个代理，即意味着会显示标题,不遵循此代理不显示标题
- (void)cycleView:(LXCycleView *)cycleView didDisplayTitleLabel:(UILabel *)titleLabel index:(NSInteger)index;
//点击触发的
- (void)cycleView:(LXCycleView *)cycleView didTouchImageView:(UIView *)showView  titleLabel:(UILabel *)titleLabel index:(NSInteger)index;
//点击触发的
- (void)cycleView:(LXCycleView *)cycleView currentIndex:(NSInteger)index;
@end

@interface LXCycleView : UIView

@property (nonatomic, strong) NSString *startDate;
@property (nonatomic, strong) NSMutableDictionary *showDataDic;

- (instancetype)initWithFrame:(CGRect)frame delegate:(id <LXCycleViewDelegate>) delegate;
- (void)reload;//当数据源发生变化时，建议调用一下
- (BOOL)startPlay;
- (void)goToPage:(NSInteger)index;
- (void)refreshView:(NSMutableArray *)dataArray hasCut:(BOOL)cut;
- (void)reDrawView;
- (void)drawXandY;
@end
